<?php
class Tag extends Base{

    public static $timestamps   =   true;

    public static $table        =   'tags';

    public static $accessible   =   array('name', 'collection_id');

    public function imgs() {
      return $this->has_many_and_belongs_to('Img', 'img_tag');
    }

    public function collection() {
      return $this->belongs_to('Collection');
    }
}
